<template>
  <div>
    <el-card v-for="item in 4" :key="item" style="margin-bottom:20px;width:1200px">
      <div class="order-top">
        <el-row type="flex" justify="space-between" align="middle">
          <el-col :span="5"><div class="grid-content bg-purple-dark" />订单号: <span>44512219911234</span> <i class="el-icon-s-order" /></el-col>
          <el-col :span="4"><div class="grid-content bg-purple-dark" />下单时间：<span>2019-05-20  10:10</span></el-col>
          <el-col :span="4"><div class="grid-content bg-purple-dark" />付款时间：2019-05-20  10:20</el-col>
          <el-col :span="4" style="text-align:right"><div class="grid-content bg-purple-dark" />实际付款：<span class="paymoney">￥396.00</span></el-col>
        </el-row>
      </div>
      <div class="order-bottom">
        <el-row>
          <el-col :span="8">
            <div class="order-goods">
              <div class="order-img"><img src="@/assets/1.png" alt=""></div>
              <div class="order-msg">
                <div>小米蓝牙耳机（K歌版）故宫特别版</div>
                <div>颜色：<span>白色</span></div>
                <div>￥198 x 2</div>
              </div>
            </div>
          </el-col>
          <el-col :span="3">
            <div class="delivery">
              <div>顺丰快递</div>
              <div>201905221234</div>
              <div>运费：包邮</div>
            </div>
          </el-col>
          <el-col :span="3">
            <div class="hxr">
              <div>火星人~艾斯</div>
              <div>联系买家</div>
            </div>
          </el-col>
          <el-col :span="3">
            <div class="sendhuo">待发货</div>
          </el-col>
          <el-col :span="7">
            <div class="orderDetailBtn">
              <el-button type="primary" class="orderDetail">订单详情</el-button>
              <el-button type="primary" class="sendGoods">发货</el-button>
            </div>
          </el-col>
        </el-row>
      </div>
    </el-card>
  </div>
</template>

<script>
export default {
  name: 'Order'
}
</script>

<style lang="scss" scoped>
.order-top{
  background-color: #f1e6e3;
  height: 40px;
  line-height: 40px !important;
  padding:0 20px;
  font-size: 14px;
  .paymoney{
    font-size: 20px;
    color:#ff6615;
  }
}
.order-bottom{
  background-color: #fff;
  padding: 20px;
}
.el-icon-s-order{
  color: #5a99ed;
  font-size: 16px;
  margin-left: 10px;
}
.order-goods{
  display: flex;
  align-items: center;
  .order-img{
    width: 100px;
    height: 100px;
    img{
      width: 100%;
      height: 100%;
    }
  }
  .order-msg{
    line-height: 30px;
    margin-left: 20px;
    margin-top: -9px;
    :nth-child(1){
      font-size: 14px;
    }
    :nth-child(2){
      font-size: 14px;
      color: #999;
    }
  }
}
.delivery{
  line-height: 30px;
  font-size: 14px;
  :last-child{
    color: #999;
  }
}
.hxr{
  line-height: 30px;
  font-size: 14px;
  text-align: center;
}
.sendhuo{
  line-height: 30px;
  font-size: 14px;
  text-align: center;
}
.el-card{
   ::v-deep.el-card__body{
    padding: 0 !important;
  }
}
::v-deep.orderDetailBtn{
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-end;
  .el-button{
    width: 100px;
    max-width: 100px;
  }
  .orderDetail{
    background-color: #438dee;
    color: #fff;
  }
  .sendGoods{
    background-color: #fff;
    border: 1px solid #438dee;
    color: #438dee;
    margin-top: 10px;
  }
}
</style>
